package com.taoz.rpc.core.serializer;

import java.io.IOException;

public interface Serializer {
    <T> byte[] serialize(T o) throws IOException;

    <T> T deserialize(byte[] data, Class<T> clazz) throws IOException, ClassNotFoundException;
}
